package com.sxjh.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.io.Serializable;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 车号表
 * </p>
 *
 * @author zixin
 * @since 2021-06-05
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("it_wagon_number")
@ApiModel(value = "WagonNumber对象", description = "车号表 ")
public class WagonNumber implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "唯一ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "车号")
    @TableField("number")
    private String number;

    @ApiModelProperty(value = "车辆类型 0|卡车,1|三轮车,2|四轮车")
    @TableField("type")
    private Integer type;

    @ApiModelProperty(value = "毛重载重/KG")
    @TableField("capacity")
    private String capacity;

    @ApiModelProperty(value = "皮重载重/KG")
    private String tare;

    @ApiModelProperty(value = "净重最大/KG")
    @TableField("floating_value")
    private String floatingValue;

    @ApiModelProperty(value = "毛重上限/KG")
    @TableField("gross_floating_value")
    private String grossFloatingValue;

    @ApiModelProperty(value = "皮重下限/KG")
    @TableField("tare_floating_value")
    private String tareFloatingValue;

    @ApiModelProperty("联系电话")
    private String phone;

    @ApiModelProperty("承运单位")
    private String unit;

    @ApiModelProperty(value = "承运单位id")
    @TableField("unit_id")
    private Integer unitId;

    @ApiModelProperty("车辆图片,多个逗号分隔")
    private String img;

    @ApiModelProperty(value = "司机id")
    @TableField("driver_id")
    private Integer driverId;

    @ApiModelProperty(value = "创建人")
    @TableField(value = "created_by", fill = FieldFill.INSERT)
    private Integer createdBy;

    @ApiModelProperty(value = "创建时间")
    @TableField(value = "created_at", fill = FieldFill.INSERT)
    private LocalDateTime createdAt;

    @ApiModelProperty(value = "更新人")
    @TableField(value = "updated_by", fill = FieldFill.UPDATE)
    private Integer updatedBy;

    @ApiModelProperty(value = "更新时间")
    @TableField(value = "updated_at", fill = FieldFill.UPDATE)
    private LocalDateTime updatedAt;

    @ApiModelProperty(value = "删除人")
    @TableField("deleted_by")
    private Integer deletedBy;

    @ApiModelProperty(value = "删除时间")
    @TableField("deleted_at")
    private LocalDateTime deletedAt;

    /**
     * 是否删除
     */
    @ApiModelProperty(value = "删除标记,1:否,-1:是")
    @TableField(value = "del_flag")
    private Integer delFlag = 1;

}
